<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

//return [
//    '__pattern__' => [
//        'name' => '\w+',
//    ],
//    '[hello]'     => [
//        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
//        ':name' => ['index/hello', ['method' => 'post']],
//    ],
//
//];
use think\Route;
Route::rule('login','api/v1.User/login');
Route::rule('get_topic','api/v1.Topic/get_topic');
Route::rule('add_fraction','api/v1.User/add_fraction');
Route::rule('get_user','api/v1.User/getUser');
Route::rule('friends_rankings','api/v1.Ranking/friends_rankings');
Route::rule('world_rankings','api/v1.Ranking/world_rankings');
Route::rule('product','api/v1.Prize/product');
Route::rule('product_info','api/v1.Prize/product_info');
Route::rule('prize_info','api/v1.Prize/prize_info');
Route::rule('exchange','api/v1.Prize/exchange');
Route::rule('luck_draw','api/v1.Luck/luck_draw');
Route::rule('get_luck','api/v1.Luck/get_luck');
Route::rule('fail','api/v1.Luck/fail');
Route::rule('newfail','api/v1.Luck/newfail');